﻿{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i>
	首页 <span class="c-gray en">&gt;</span>
	用户管理 <span class="c-gray en">&gt;</span>
	邀请列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
	<form action="" method="get">
	<div class="text-c">
		<input type="text" class="input-text" style="width:250px" placeholder="输入会员名称、电话" id="word" name="word" value="{:input('word')}">
		<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜用户</button>
	</div>
	</form>
	<div class="cl pd-5 bg-1 bk-gray mt-20">
		<span class="r"> 共有数据：<strong id="count">{$list->count()}</strong> 条</span>
	</div>
	<div class="mt-20">
	<table class="table table-border table-bordered table-hover table-bg table-sort dataTable no-footer" id="DataTables_Table_0" role="grid" aria-describedby="DataTables_Table_0_info">
		<thead>
			<tr class="text-c">
				<th width="100">用户名/手机号码</th>
				<th width="80" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="邀请人数: 升序排列" style="width: 80px;">邀请人数</th>
				<th width="80" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="充值CJB数量: 升序排列" style="width: 80px;">充值CJB数量</th>
				<th width="80" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="充值ETH数量: 升序排列" style="width: 80px;">充值ETH数量</th>
				<th width="80" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="奖励CJB数量: 升序排列" style="width: 80px;">奖励CJB数量</th>
				<th width="80" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="奖励ETH数量: 升序排列" style="width: 80px;">奖励ETH数量</th>
				<th width="80" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="盈利CJB数量: 升序排列" style="width: 80px;">盈利CJB数量</th>
				<th width="80" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="盈利ETH数量: 升序排列" style="width: 80px;">盈利ETH数量</th>
				<th width="80" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="投注CJB数量: 升序排列" style="width: 80px;">投注CJB数量</th>
				<th width="80" class="sorting" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" aria-label="投注ETH数量: 升序排列" style="width: 80px;">投注ETH数量</th>
			</tr>
		</thead>
		<tbody>
		{foreach $list as $v}
		<tr class="text-c">
				<td>{$v.name|default='NULL'}<br>{$v.mobile}</td>
				<td>{$v.invite_num}</td>
				<td>{$v.cjb_num}</td>
				<td>{$v.eth_num}</td>
				<td>{$v.cjb_reward}</td>
				<td>{$v.eth_reward} </td>
				<td>{$v.cjb_win}</td>
				<td>{$v.eth_win} </td>
				<td>{$v.cjb_tonum}</td>
				<td>{$v.eth_tonum} </td>
			</tr>
		{/foreach}
		</tbody>
	</table>
	</div>
</div>
{include file="public/footer" /}
<script>
    $(function(){
        $('.table-sort').dataTable({
            "aaSorting": [[ 1, "desc" ]],//默认第几个排序
            "bStateSave": true,//状态保存
            "aoColumnDefs": [
                //{"bVisible": false, "aTargets": [ 3 ]}, //控制列的隐藏显示
                {"orderable":false,"aTargets":[0]}// 制定列不参与排序
            ]
        });
    });
</script>
